/**
 * 
 */
package com.mywind.entity.windfarm;

import java.util.Date;

import org.apache.ibatis.type.Alias;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.mywind.util.CustomDateSerializer;

/**
 * @author a01513
 *
 */
@Alias("windfarm")
public class WindFarmEntity {
	
	private String farmid;
	private String farmname;
	private int turbineNum;
	private int etl;
	@DateTimeFormat(pattern = "yyyyMMdd")
	private Date mtime;
	private String[] turbine;
	
	public String getFarmid() {
		return farmid;
	}
	public void setFarmid(String farmid) {
		this.farmid = farmid;
	}
	public String getFarmname() {
		return farmname;
	}
	public void setFarmname(String farmname) {
		this.farmname = farmname;
	}
	public String[] getTurbine() {
		return turbine;
	}
	public void setTurbine(String[] turbine) {
		this.turbine = turbine;
	}
	public int getEtl() {
		return etl;
	}
	public void setEtl(int etl) {
		this.etl = etl;
	}
	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getMtime() {
		return mtime;
	}
	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}
	public int getTurbineNum() {
		return turbineNum;
	}
	public void setTurbineNum(int turbineNum) {
		this.turbineNum = turbineNum;
	}

}
